package org.dromara.web.CssUtil.payUtil.bean;

import lombok.Data;
import org.dromara.web.CssUtil.payUtil.ClearTextUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @author mi
 */
@Data
public class AppTiXianParams {

    private String traceNo;

     private String mchntCd;

     private String accountIn="";




    private accountIn2 accountInlist;

    @Data
    public static class accountIn2 {
        private List<accountIn> accountInlist = new ArrayList<accountIn>();
    }


    public String generateClearText() {
        List<String> excludeFieldList = new ArrayList<>();
        // 证件类型
        excludeFieldList.add("srcFasSsnList");
        // 身份证号码
        excludeFieldList.add("accountInlist");
        excludeFieldList.add("signature");
        return ClearTextUtil.generateClearText(this, excludeFieldList);
    }

    @Data
    public static class accountIn {

        private String accountIn;

        private String allocateAmt;

        private String allocateType="01";

        private String cleanBankNo;

        private String invoiceType="";

        private String remark="";

    }
    /**
     * 签名
     */
    private String signature;
}
